package huawei;

import java.util.Scanner;

/**
 * @author pengfei.hpf
 * @date 2020/3/25
 * @verdion 1.0.0
 */
public class GongBeishu {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int[] input = new int[2];
        int i = 0;
        while(in.hasNextInt()){
            input[i] = in.nextInt();
            i++;
        }
        int a = input[0];
        int b = input[1];
        if(a < b){
            int t = a;
            a = b;
            b = t;
        }

        System.out.println(a*b / gcd(a,b));
    }

    private static int gcd(int a, int b){
        if(b == 0){
            return a;
        }
        return gcd(b, a%b);
    }
}
